/*
	double x, a;
	int n, i;
	scanf("%lf%d", &x, &n);
	getchar();
	char op;
	double sum;
	sum = x;
	for (i = 0; i < n; i++)
	{
		scanf("%c%lf", &op, &a);
		getchar();
		if (op == '+')
		{
			sum = sum + a;
		}
		else if (op == '-')
		{
			sum = sum - a;
		}
	}
	printf("%.2lf", sum);
	return 0;
}*/
#include <stdio.h>
int main()
{
	char ch;
	int n;
	scanf("%c %d",&ch,&n);
	n = n % 26;
	if (ch >= 'a' && ch <= 'z')
	{
		ch = ch + n;
		printf("%c", ch);
		if (ch > 'z')
	{	
			ch = ch - 26;
	}
		printf("%c", ch);
	}
	else if (ch >= 'A' && ch <= 'Z')
	{
		ch = ch + n;
		if (ch > 'Z')
	{
		ch = ch - 26;	
	}printf("%c", ch);
	}
	else if (ch >= '0' && ch <= '9')
	{
		printf("%c", ch);
	}
	return 0;
}


